package fr.ralmn.OgameDroid.Object.Dependence;

import java.util.ArrayList;

import android.util.Log;

import fr.ralmn.OgameDroid.Object.Objects;

public class Require {

	ArrayList<RequireItemTechno> technos = new ArrayList<RequireItemTechno>();
	ArrayList<RequireItemBatiments> batiments = new ArrayList<RequireItemBatiments>();

	public Require() {
		Objects.setT();
		technos = new ArrayList<RequireItemTechno>();
		batiments = new ArrayList<RequireItemBatiments>();
	}

	public Require addTechno(RequireItemTechno i) {
		Log.d("RALMN", i.getItem().getName());
		technos.add(i);
		return this;
	}

	public Require addTechnos(RequireItemTechno o, RequireItemTechno... is) {
		technos.add(o);
		Log.d("RALMN", o.getItem().getName());
		for (RequireItemTechno i : is) {
			technos.add(i);
			Log.d("RALMN", i.getItem().getName());
		}
		return this;
	}

	public Require addBatiment(RequireItemBatiments i) {
		batiments.add(i);
		return this;
	}

	public Require addBatiments(RequireItemBatiments o,
			RequireItemBatiments... is) {
		batiments.add(o);
		for (RequireItemBatiments i : is) {
			batiments.add(i);
		}
		return this;

	}

	public ArrayList<RequireItemTechno> getTechnos() {
		return technos;
	}

	public ArrayList<RequireItemBatiments> getBatiments() {
		return batiments;
	}

}
